package com.qcby.onlinelearningplatform.Service.Impl;

import com.qcby.onlinelearningplatform.Dao.RelDao;
import com.qcby.onlinelearningplatform.Entity.Teacher;
import com.qcby.onlinelearningplatform.Service.RelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RelServiceImpl implements RelService {

    @Autowired
    public RelDao relDao;


    @Override
    public List<Teacher> getTeacher(Integer id) {
        return this.relDao.getTeacher(id);
    }
}
